<?php

namespace App\Http\Requests\AuthRequests;

use Illuminate\Foundation\Http\FormRequest;

class PayPassword1Request extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'pay_password' => ['required'],
            'pay_password1' => ['required', ''],
        ];
    }

    /**
     * @return array
     */
    public function messages()
    {
        return [
            'pay_password.required' => __('交易密码必填'),
            'pay_password1.required'     => __('确认交易交易必填'),
        ];
    }
}
